<template>
    <div>
       <BreadView v-if="category">
      <BreadItem :to="'/'">首页</BreadItem>
      <BreadItem :to="'/'">{{category[1].name}}</BreadItem>
      <BreadItem :to="'/'">{{category[0].name}}</BreadItem>
      <BreadItem :to="'/'">{{name}}</BreadItem>
    </BreadView>
    </div>
</template>
<script>
import BreadItem from '@/components/utils/brand/BrandItem.vue'
import BreadView from '@/components/utils/brand/BrandView.vue'
export default {
    components: { BreadView, BreadItem },
    props: {
      category: {
        type: Array,
        default: () => { }
      },
      name: {
        type: String,
        default: ''
      }
    }
}
</script>








